package com.woniu.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.woniu.entity.MaintenancePerson;
import com.baomidou.mybatisplus.extension.service.IService;
import com.woniu.util.PageData;
import com.woniu.util.ResponseData;

import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.util.List;

/**
* @author Apricity
* @description 针对表【maintenance_person(运维人员表)】的数据库操作Service
* @createDate 2025-02-13 20:16:59
*/
public interface MaintenancePersonService extends IService<MaintenancePerson> {

    void savePerson(MaintenancePerson maintenancePerson);

    void removePersonById(List<String> userNumber);

    void updatePersonById(MaintenancePerson maintenancePerson);

    MaintenancePerson getbyPersonId(String userNumber);

    Page<MaintenancePerson> queryPage(PageData pageData);

    void updateStatus(Integer status, String userNumber);

    List<MaintenancePerson> getUserInfo(String userName);

    ResponseData<?> outDepartmentExcelTemplate(HttpServletResponse response) throws IOException;
}
